﻿<UserControl
		xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
		xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
		xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
		xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
		xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit" xmlns:local="clr-namespace:Calculin" x:Class="Calculin.MainPage"
		mc:Ignorable="d" FontSize="13.333" FontFamily="Calibri" Background="#FF3AE2E2">
		<Border BorderBrush="#FF06073F" BorderThickness="2" CornerRadius="3">
			<ScrollViewer>	
			<StackPanel x:Name="LayoutRoot" Background="White" Orientation="Vertical">
				<Grid x:Name="XpCuentas" Background="#FFEDC29E" Margin="2,0,0,0" >
							<Grid.RowDefinitions>
								<RowDefinition x:Name="rControl" Height="*"/>
								<RowDefinition x:Name="rCuentas" Height="*"/>
							</Grid.RowDefinitions>
							<StackPanel Grid.Row="0" Orientation="Horizontal">	
								<Button x:Name="btGenerar" Content="Generar"/>
								<Button x:Name="btControl" Content="Comenzar" Background="#FF52F709" Foreground="Black">
																<Button.BorderBrush>
										<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
											<GradientStop Color="#FFA3AEB9" Offset="0"/>
											<GradientStop Color="#FF8399A9" Offset="0.375"/>
											<GradientStop Color="#FF718597" Offset="0.375"/>
											<GradientStop Color="#FF37ED12" Offset="1"/>
										</LinearGradientBrush>
									</Button.BorderBrush></Button>
														<Button x:Name="btPause" Content="Pausa" Background="#FFA33406" Foreground="Black" Visibility="Collapsed" />
														<Button x:Name="btValidar" Content="Solucion"/>
								<PasswordBox x:Name="xAdmin" Visibility="Collapsed" Height="20" FontSize="10" />								
								<TextBlock x:Name="txID" Visibility="Collapsed" FontSize="8" Foreground="#FF939191" HorizontalAlignment="Right" />
							</StackPanel>
							<StackPanel x:Name="spCuentas" Grid.Row="1" Orientation="Vertical">	
							
							</StackPanel>
					</Grid>
				<toolkit:Expander x:Name="OpEnteros" Header="Opciones Enteros" Margin="2,1,1,0" VerticalAlignment="Top" Grid.Row="2" Background="#FF7CF2E0">
					<Grid x:Name="XpConfigEnteros" Background="#FFEDA6CC" Margin="2,0,0,0" >
							<Grid.RowDefinitions>
								<RowDefinition x:Name="rSumas" Height="*"/>
								<RowDefinition x:Name="datSumas" Height="*"/>
								<RowDefinition x:Name="rRestas" Height="*"/>
								<RowDefinition x:Name="datRestas" Height="*"/>
								<RowDefinition x:Name="rMulti" Height="*"/>
								<RowDefinition x:Name="datMulti" Height="*"/>
								<RowDefinition x:Name="rDividir" Height="*"/>
								<RowDefinition x:Name="datDividir" Height="*"/>		
								<RowDefinition x:Name="rTiempo" Height="*"/>																			
							</Grid.RowDefinitions>
							<Grid.ColumnDefinitions>
								<ColumnDefinition Width="*"/>
							</Grid.ColumnDefinitions>
						<TextBlock Text="Sumas" Margin="5,0,0,0" Grid.Column="0" Grid.Row="0"/>
						<StackPanel Orientation="Horizontal" Grid.Column="0" Grid.Row="1" Background="#FF5EB3E9" >
							<TextBlock Text="#" VerticalAlignment="center" Margin="0,0,2,0" FontWeight="Bold" />
							<toolkit:NumericUpDown x:Name="QSumas" VerticalAlignment="center" Maximum="10" Value="0" BorderBrush="{x:Null}" Height="Auto" />
							<TextBlock VerticalAlignment="center" Margin="10,0,0,0" Text="Dg1" FontWeight="Bold"></TextBlock>
	<toolkit:NumericUpDown x:Name="DSumasOp1" VerticalAlignment="center" Maximum="9" Minimum="1" Value="5" Height="Auto" />
							<TextBlock VerticalAlignment="center" Margin="10,0,0,0" Text="Dg2" FontWeight="Bold"></TextBlock>
	<toolkit:NumericUpDown x:Name="DSumasOp2" VerticalAlignment="center" Maximum="9" Minimum="1" Value="5" Height="Auto" />
						</StackPanel>
						<TextBlock Text="Restas" Margin="5,0,0,0" Grid.Column="0" Grid.Row="2"/>
						<StackPanel Orientation="Horizontal" Grid.Column="0" Grid.Row="3" Background="#FF5EB3E9">
							<TextBlock Text="#" VerticalAlignment="center" Margin="0,0,2,0" FontWeight="Bold" />
							<toolkit:NumericUpDown x:Name="QRestas" VerticalAlignment="center" Maximum="10" Value="0" Height="Auto" />
							<TextBlock VerticalAlignment="center" Margin="10,0,0,0" Text="Dg1" FontWeight="Bold"></TextBlock>
	<toolkit:NumericUpDown x:Name="DRestasOp1" VerticalAlignment="center" Maximum="9" Minimum="1" Value="5" Height="Auto" />
							<TextBlock VerticalAlignment="center" Margin="10,0,0,0" Text="Dg2" FontWeight="Bold"></TextBlock>
	<toolkit:NumericUpDown x:Name="DRestasOp2" VerticalAlignment="center" Maximum="9" Minimum="1" Value="5" Height="Auto" />		
						</StackPanel>					
						<TextBlock Text="Multiplicacion" Margin="5,0,0,0" Grid.Column="0" Grid.Row="4"/>
						<StackPanel Orientation="Horizontal" Grid.Column="0" Grid.Row="5" Background="#FF5EB3E9">
							<TextBlock Text="#" VerticalAlignment="Top" Margin="0,0,2,0" FontWeight="Bold" />
							<toolkit:NumericUpDown x:Name="QMulti" VerticalAlignment="center" Maximum="10" Value="0" Height="Auto" />
							<TextBlock VerticalAlignment="center" Margin="10,0,0,0" Text="Dg1" FontWeight="Bold"></TextBlock>
	<toolkit:NumericUpDown x:Name="DMultiOp1" VerticalAlignment="center" Maximum="9" Minimum="1" Value="5" Height="Auto" />
							<TextBlock Text="x Mn" VerticalAlignment="center" Margin="10,0,4,0" FontWeight="Bold" />
							<toolkit:NumericUpDown x:Name="DMultixMin" VerticalAlignment="Top" Maximum="9999" Minimum="1" Margin="0,0,0,0" Value="10" Height="Auto" />
							<TextBlock Text="x Mx" VerticalAlignment="center" Margin="2,0,4,0" FontWeight="Bold" />
							<toolkit:NumericUpDown x:Name="DMultixMax" VerticalAlignment="Top" Maximum="9999" Minimum="1" Margin="0,0,0,0" Value="99" Height="Auto" />
						</StackPanel>					
						<TextBlock Text="Dividir" Margin="5,0,0,0" Grid.Column="0" Grid.Row="6"/>
						<StackPanel Orientation="Horizontal" Grid.Column="0" Grid.Row="7" Background="#FF5EB3E9">
							<TextBlock Text="#" VerticalAlignment="center" Margin="0,0,2,0" FontWeight="Bold" />
							<toolkit:NumericUpDown x:Name="QDivi" VerticalAlignment="center" Maximum="10" Value="0" Height="Auto" />
							<TextBlock VerticalAlignment="center" Margin="10,0,0,0" Text="Dg1" FontWeight="Bold"></TextBlock>
	<toolkit:NumericUpDown x:Name="DDiviOp1" VerticalAlignment="center" Maximum="9" Minimum="1" Value="5" Height="Auto" />
							<TextBlock Text="% Mn" VerticalAlignment="center" Margin="10,0,0,0" FontWeight="Bold" />
							<toolkit:NumericUpDown x:Name="DDivixMin" VerticalAlignment="Top" Maximum="9999" Minimum="1" Margin="0,0,0,0" Value="10" Height="Auto" />
							<TextBlock Text="% Mx" VerticalAlignment="center" Margin="2,0,0,0" FontWeight="Bold" />
							<toolkit:NumericUpDown x:Name="DDivixMax" VerticalAlignment="Top" Maximum="9999" Minimum="1" Margin="0,0,0,0" Value="99" Height="Auto" />
						</StackPanel>										
						</Grid>
				</toolkit:Expander>
				<toolkit:Expander x:Name="OpReales" Header="Opciones Reales" Margin="2,1,1,0" VerticalAlignment="Top" Grid.Row="3" Background="#FF7CF2E0">
					<Grid x:Name="XpConfigReales" Background="#FFEDC255" Margin="2,0,0,0" >
						<Grid.RowDefinitions>
							<RowDefinition x:Name="rRSumas" Height="*"/>
							<RowDefinition x:Name="datRSumas" Height="*"/>
							<RowDefinition x:Name="rRRestas" Height="*"/>
							<RowDefinition x:Name="datRRestas" Height="*"/>
							<RowDefinition x:Name="rRMulti" Height="*"/>
							<RowDefinition x:Name="datRMulti" Height="*"/>
							<RowDefinition x:Name="rRDividir" Height="*"/>
							<RowDefinition x:Name="datRDividir" Height="*"/>
						</Grid.RowDefinitions>
						<Grid.ColumnDefinitions>
							<ColumnDefinition Width="*"/>
						</Grid.ColumnDefinitions>
						<TextBlock Text="Sumas" Margin="5,0,0,0" Grid.Column="0" Grid.Row="0"/>
						<StackPanel Orientation="Horizontal" Grid.Column="0" Grid.Row="1" Background="#FF5EB3E9" >
							<TextBlock Text="#" VerticalAlignment="center" Margin="0,0,2,0" FontWeight="Bold" />
							<toolkit:NumericUpDown x:Name="QRSumas" VerticalAlignment="center" Maximum="10" Value="0" BorderBrush="{x:Null}" Height="Auto" />
							<TextBlock VerticalAlignment="center" Margin="10,0,0,0" Text="Dg1" FontWeight="Bold"></TextBlock>
							<toolkit:NumericUpDown x:Name="DRSumasOp1" VerticalAlignment="center" Maximum="9" Minimum="1" Value="5" Height="Auto" Width="Auto" />
							<TextBlock Text="," VerticalAlignment="Center" Margin="2,0,0,0" FontWeight="Bold" />
							<toolkit:NumericUpDown Maximum="9" Minimum="0" Name="DcSumasOp1" Value="3" Height="Auto" Width="Auto" />
							<TextBlock VerticalAlignment="center" Margin="10,0,2,0" Text="Dg2" FontWeight="Bold"></TextBlock>
							<toolkit:NumericUpDown x:Name="DRSumasOp2"  Maximum="9" Minimum="1" Value="5" Height="Auto" Width="Auto" />
							<TextBlock Text="," VerticalAlignment="Center" Margin="2,0,0,0" FontWeight="Bold" />
							<toolkit:NumericUpDown Maximum="9" Minimum="0" Name="DcSumasOp2" Value="3" Height="Auto" Width="Auto" />
						</StackPanel>
						<TextBlock Text="Restas" Margin="5,0,0,0" Grid.Column="0" Grid.Row="2"/>
						<StackPanel Orientation="Horizontal" Grid.Column="0" Grid.Row="3" Background="#FF5EB3E9">
							<TextBlock Text="#" VerticalAlignment="center" Margin="0,0,2,0" FontWeight="Bold" />
							<toolkit:NumericUpDown x:Name="QRRestas" VerticalAlignment="Center" Maximum="10" Value="0" HorizontalAlignment="Stretch" Height="Auto" />
							<TextBlock VerticalAlignment="center" Margin="10,0,0,0" Text="Dg1" FontWeight="Bold"></TextBlock>
							<toolkit:NumericUpDown x:Name="DRRestasOp1" VerticalAlignment="center" Maximum="9" Minimum="1" Value="5" Height="Auto" />
							<TextBlock Text="," VerticalAlignment="Center" Margin="2,0,0,0" FontWeight="Bold" />
							<toolkit:NumericUpDown Height="Auto" Maximum="9" Minimum="0" Name="DcRestasOp1" Value="3" />
							<TextBlock VerticalAlignment="center" Margin="10,0,0,0" Text="Dg2" FontWeight="Bold"></TextBlock>
							<toolkit:NumericUpDown x:Name="DRRestasOp2" VerticalAlignment="center" Maximum="9" Minimum="1" Value="5" Height="Auto" />
							<TextBlock Text="," VerticalAlignment="Center" Margin="2,0,0,0" FontWeight="Bold" />
							<toolkit:NumericUpDown Height="Auto" Maximum="9" Minimum="0" Name="DcRestasOp2" Value="3" />
						</StackPanel>
						<TextBlock Text="Multiplicacion" Margin="5,0,0,0" Grid.Column="0" Grid.Row="4"/>
						<StackPanel Orientation="Horizontal" Grid.Column="0" Grid.Row="5" Background="#FF5EB3E9">
							<TextBlock Text="#" VerticalAlignment="Top" Margin="0,0,2,0" FontWeight="Bold" />
							<toolkit:NumericUpDown x:Name="QRMulti" VerticalAlignment="center" Maximum="10" Value="0" Height="Auto" />
							<TextBlock VerticalAlignment="center" Margin="10,0,0,0" Text="Dg1" FontWeight="Bold"></TextBlock>
							<toolkit:NumericUpDown x:Name="DRMultiOp1" VerticalAlignment="center" Maximum="9" Minimum="1" Value="5" Height="Auto" />
							<TextBlock Text="," VerticalAlignment="Center" Margin="2,0,0,0" FontWeight="Bold" />
							<toolkit:NumericUpDown Height="Auto" Maximum="9" Minimum="0" Name="DcMultiOp1" Value="3" />
							<TextBlock Text="x Mn" VerticalAlignment="center" Margin="10,0,4,0" FontWeight="Bold" />
							<toolkit:NumericUpDown x:Name="DRMultixMin" VerticalAlignment="Top" Maximum="9999" Minimum="1" Margin="0" Value="10" Height="Auto" />
							<TextBlock Text="x Mx" VerticalAlignment="center" Margin="2,0,4,0" FontWeight="Bold" />
							<toolkit:NumericUpDown x:Name="DRMultixMax" VerticalAlignment="Top" Maximum="9999" Minimum="1" Margin="0,0,0,0" Value="99" Height="Auto" />
							<TextBlock Text="," VerticalAlignment="Center" Margin="2,0,0,0" FontWeight="Bold" />
							<toolkit:NumericUpDown Height="Auto" Maximum="9" Minimum="0" Name="DcMultix" Value="3" />              
						</StackPanel>
						<TextBlock Text="Dividir" Margin="5,0,0,0" Grid.Column="0" Grid.Row="6"/>
						<StackPanel Orientation="Horizontal" Grid.Column="0" Grid.Row="7" Background="#FF5EB3E9">
							<TextBlock Text="#" VerticalAlignment="center" Margin="0,0,2,0" FontWeight="Bold" />
							<toolkit:NumericUpDown x:Name="QRDivi" VerticalAlignment="center" Maximum="10" Value="0" Height="Auto" />
							<TextBlock VerticalAlignment="center" Margin="10,0,0,0" Text="Dg1" FontWeight="Bold"></TextBlock>
							<toolkit:NumericUpDown x:Name="DRDiviOp1" VerticalAlignment="center" Maximum="9" Minimum="1" Value="5" Height="Auto" />
							<TextBlock Text="," VerticalAlignment="Center" Margin="2,0,0,0" FontWeight="Bold" />
							<toolkit:NumericUpDown Maximum="9" Minimum="0" Name="DcDiviOp1" Value="3" Height="Auto" />
							<TextBlock Text="% Mn" VerticalAlignment="center" Margin="10,0,0,0" FontWeight="Bold" />
							<toolkit:NumericUpDown x:Name="DRDivixMin" VerticalAlignment="Top" Maximum="9999" Minimum="1" Margin="0,0,0,0" Value="10" Height="Auto" />
							<TextBlock Text="% Mx" VerticalAlignment="center" Margin="2,0,0,0" FontWeight="Bold" />
							<toolkit:NumericUpDown x:Name="DRDivixMax" VerticalAlignment="Top" Maximum="9999" Minimum="1" Margin="0,0,0,0" Value="99" Height="Auto" />
							<TextBlock Text="," VerticalAlignment="Center" Margin="2,0,0,0" FontWeight="Bold" />
							<toolkit:NumericUpDown Height="Auto" Maximum="9" Minimum="0" Name="DcDivix" Value="3" />              
						</StackPanel>
					</Grid>
				</toolkit:Expander>
				<toolkit:Expander x:Name="OpGnrl" Header="Opciones Generales" Margin="2,1,1,0" VerticalAlignment="Top" Grid.Row="4" Background="#FF7CF2E0">
					<Grid x:Name="XpConfigGnrl" Background="#FFEDC29E" Margin="2,0,0,0" >
						<Grid.RowDefinitions>
							 <RowDefinition x:Name="datTiempo" Height="*"/>
						</Grid.RowDefinitions>
						<Grid.ColumnDefinitions>
							<ColumnDefinition Width="*"/>
						</Grid.ColumnDefinitions>

						<TextBlock Text="Tiempo" Grid.Column="0" Grid.Row="8"/>
						<StackPanel Orientation="Horizontal" Grid.Column="0" Grid.Row="9" Background="#FF5EB3E9">
							<TextBlock Text="Minutos" VerticalAlignment="center" Margin="0,0,2,0"/>
							<toolkit:NumericUpDown x:Name="QTiempo" VerticalAlignment="center" Maximum="60" Value="20" Minimum="1" Height="Auto" />
							<TextBlock Text="Zoom" VerticalAlignment="center" Margin="2,0"/>
							<toolkit:NumericUpDown x:Name="QZoom" VerticalAlignment="center" Maximum="5" Value="0" Minimum="-5" Height="Auto" />

					 </StackPanel>
					</Grid>
				</toolkit:Expander>
				<Grid x:Name="XpTiempo" Background="#FFEDC29E" Margin="2,0,0,0" >
							<Grid.RowDefinitions>
								<RowDefinition x:Name="rRestante" Height="*"/>
								<RowDefinition x:Name="rBar" Height="*"/>
							</Grid.RowDefinitions>
							<StackPanel Grid.Row="0" Orientation="Horizontal">
						<TextBlock Text="Tiempo Restante: " Margin="2,0,0,0" VerticalAlignment="center"/>
								 <TextBlock x:Name="xTime" Text="00:00:00" VerticalAlignment="center"/>
							</StackPanel>							
						<ProgressBar x:Name="BarTime" Grid.Row="1" Height="35" BorderBrush="{x:Null}" Foreground="#B28B8D91" >
							<ProgressBar.Background>
								<LinearGradientBrush EndPoint="1,0" MappingMode="RelativeToBoundingBox" StartPoint="0,1">
									<GradientStop Color="Lime" Offset="0.9"/>
									<GradientStop Color="Red" Offset="0.1"/>
									<GradientStop Color="Yellow" Offset="0.35"/>
								</LinearGradientBrush>
							</ProgressBar.Background>
						</ProgressBar>
					</Grid>
					<MediaElement x:Name="vuvuzela" Source="Sound/Vuvuzela.wma" AutoPlay="False" Volume="0.7"/>
				<TextBlock x:Name="Cp" VerticalAlignment="center" HorizontalAlignment="Right" Text="dsdsdsdsd" FontSize="8" FontStyle="Italic" />
			</StackPanel> 
		</ScrollViewer>
		</Border>
</UserControl>
